package main

import "fmt"

func main() {
	ch := make(chan int)
	go send(ch)

	recv(ch)
}

func send(ch chan<- int) {
	ch <- 10
}

func recv(ch <-chan int) {
	data := <-ch
	fmt.Println(data)
}
